//女装
var chothesWomanDate1 = [{
    id: 1,
    src: './../date/date-images/clothes-images/woman1-1.jpg',
    describe: '韩都衣舍2017韩版女装夏装新款时尚修身显瘦圆领条纹T恤OGY7711娋 显瘦版型 舒适面料 条纹元素',
    price: '¥79.00'
}, {
    id: 2,
    src: './../date/date-images/clothes-images/woman1-2.jpg',
    describe: '得听格子衬衫女长袖2020秋季新款小清新韩版宽松百搭学生春秋装纯棉衬衫大码外套上衣女 天蓝色 M（1',
    price: '¥78.00'
}, {
    id: 3,
    src: './../date/date-images/clothes-images/woman1-3.jpg',
    describe: '韩都衣舍2017春装新款女装春款拼接喇叭长袖连衣裙中长款时尚韩版 领券立减/单件包邮/七天无理由退换',
    price: '¥118.00'
}, {
    id: 4,
    src: './../date/date-images/clothes-images/woman1-4.jpg',
    describe: '韩都衣舍2017韩版女装夏装新款时尚修身显瘦圆领条纹T恤OGY7711娋 显瘦版型 舒适面料 条纹元素',
    price: '¥88.00'
}, ];

var chothesWomanDate2 = [{
    id: 1,
    src: './../date/date-images/clothes-images/woman2-1.jpg',
    describe: '美的韩美格2017春秋新款修身大码蕾丝网纱打底衫女长袖薄款圆领女T恤 全店商品 二件减5元 三件减10',
    price: '¥68.00'
}];

var chothesWomanDate3 = [{
    id: 1,
    src: './../date/date-images/clothes-images/woman3-1.jpg',
    describe: '华帝新款韩版chic学生宽松短款外套上衣字母长袖连帽套头卫衣女潮',
    price: '¥300.00'
}, {
    id: 2,
    src: './../date/date-images/clothes-images/woman3-2.jpg',
    describe: '乐力初棉纯色圆领长袖T恤打底衫秋衣女上衣体恤女士修身打底衣春秋 挺拔有型 棉氨材质 柔软舒适 耐洗耐磨',
    price: '¥65.00'
}, ];


var chothesWomanDate4 = [{
    id: 1,
    src: './../date/date-images/clothes-images/woman4-2.jpg',
    describe: '喜瑞新款学院风韩版时尚太空棉宽松长袖印花圆领卫衣女',
    price: '¥233.00'
}, {
    id: 2,
    src: './../date/date-images/clothes-images/woman4-1.jpg',
    describe: 'LG17年春夏新款百搭半身裙蛋糕裙 a字裙 裤裙伞裙大码裙子超短裙女 松紧腰围 带裤边打底衬 涤针织面料',
    price: '¥49.00'
}, ];

var chothesWomanDate5 = [{
    id: 1,
    src: './../date/date-images/clothes-images/woman5-1.jpg',
    describe: '逸阳女裤春装新款韩版休闲裤女九分裤黑色弹力微喇叭裤子显瘦0032 浓郁复古风 修饰腿型 生而优雅',
    price: '¥158.00'
}];
//男装
var chothesManDate1 = [{
    id: 1,
    src: './../date/date-images/clothes-images/man1-1.jpg',
    describe: '杰克琼斯马克华菲长袖T恤男 冬季新品纯棉圆领黑白潮款印花休闲t恤   98',
    price: '¥80.00'
}, {
    id: 2,
    src: './../date/date-images/clothes-images/man1-2.jpg',
    describe: '哥弟秋季新款男士套头卫衣印花外套韩版简约百搭潮流男生上衣服',
    price: '¥120.00'
}, {
    id: 3,
    src: './../date/date-images/clothes-images/man1-3.jpg',
    describe: '金史密斯HLA/海澜之家撞色长袖T恤春季热卖圆领修身拼接T恤男 简约圆领 微弹修身 撞色拼接 触感柔软',
    price: '¥98.00'
}, {
    id: 4,
    src: './../date/date-images/clothes-images/man1-4.jpg',
    describe: '匡威马克华菲短袖T恤 夏装新款舒适圆领条纹拼接男简约修身短袖上衣',
    price: '¥128.00'
}];
var chothesManDate2 = [{
    id: 1,
    src: './../date/date-images/clothes-images/man2-1.jpg',
    describe: '康恩贝裤子男士哈伦裤春季新款2017束脚裤修身韩版潮流小脚裤男裤休闲裤 弹力',
    price: '¥99.00'
}];
// 配饰
var chothesOrnamentDete1 = [{
    id: 1,
    src: './../date/date-images/clothes-images/ornament1-1.jpg',
    describe: '金奥力红叶伞遮阳伞防紫外线黑胶防晒晴雨两用太阳伞女糖果色折叠雨伞大 黑胶防晒 晴雨两用 糖果色 都市风情',
    price: '¥38.00'
}, {
    id: 2,
    src: './../date/date-images/clothes-images/ornament1-2.jpg',
    describe: '匡威Apple/苹果 Apple Watch Series 2 智能手表42mm',
    price: '¥3188.00'
}, {
    id: 3,
    src: './../date/date-images/clothes-images/ornament1-3.jpg',
    describe: '杰克琼斯74超薄非球面镜片高度近视眼镜片近视镜片防蓝光配眼镜镜片加工 套餐价低至359元 6款镜架任您选',
    price: '¥399.00'
}, {
    id: 4,
    src: './../date/date-images/clothes-images/ornament1-4.jpg',
    describe: '佳沪数码-华为男女韩版纯棉可爱冬季个性防尘情侣口罩保暖透气黑色时尚潮款春 15元一共2个口罩 防尘个性时尚',
    price: '¥15.00'
}];

var chothesOrnamentDete2 = [{
    id: 1,
    src: './../date/date-images/clothes-images/ornament2-1.jpg',
    describe: '姬芮NewEra纽亦华 新款MLB棒球帽男女字母NY洋基LA道奇调节平沿嘻哈帽 官方正品',
    price: '¥219.00'
}];

//内衣
var chothesUnderwearDete1 = [{
    id: 1,
    src: './../date/date-images/clothes-images/under1-1.jpg',
    describe: '爆款 爱慕经典KiKi裤轻薄无痕女士中腰三角内裤多色内衣A',
    price: '¥38.00'
}, {
    id: 2,
    src: './../date/date-images/clothes-images/under1-2.jpg',
    describe: '狼爪贝妍夏季薄款女士睡衣性感V领女南韩丝家居服运动可外穿中袖套装',
    price: '¥3188.00'
}, {
    id: 3,
    src: './../date/date-images/clothes-images/under1-3.jpg',
    describe: '兰蔻Calvin Klein Underwear/CK 2017春夏新款 男士平角内裤NU8638 初上市价格290元',
    price: '¥399.00'
}, {
    id: 4,
    src: './../date/date-images/clothes-images/under1-4.jpg',
    describe: '立邦都市丽人文胸旗舰店 林志玲有钢圈少女小胸文胸 聚拢 调整型内衣V 官方正品 赠运费险 收藏有礼 全国包邮',
    price: '¥15.00'
}];
var chothesUnderwearDete2 = [{
    id: 1,
    src: './../date/date-images/clothes-images/under2-1.jpg',
    describe: 'Masentek迷瞳盒装女士内裤莫代尔透气少女三角裤夏季性感低腰无痕大码裤头 5条盒装 莫代尔面料 小内裤 窄边三角裤',
    price: '¥38.00'
}];
//运动
var chotheSmotionDete1 = [{
    id: 1,
    src: './../date/date-images/clothes-images/smotion1-1.jpg',
    describe: '阿迪达斯男鞋ZX750三叶草zx700跑',
    price: '¥38.00'
}, {
    id: 2,
    src: './../date/date-images/clothes-images/smotion1-2.jpg',
    describe: '三星Nike 耐克官方 PRO COOL COMP LONG-SLEEVE 男子训练紧身衣703088',
    price: '¥3188.00'
}, {
    id: 3,
    src: './../date/date-images/clothes-images/smotion1-3.jpg',
    describe: '乔山洽福 转椅轮子万向轮 老板椅办公椅子滑轮电脑椅配件滚轮脚轮轱辘 静音灵活不伤地板质保三年下单备注安装方式',
    price: '¥399.00'
}, {
    id: 4,
    src: './../date/date-images/clothes-images/smotion1-4.jpg',
    describe: '皮克朋马克华菲长袖T恤男 冬季新品纯棉圆领黑白潮款印花休闲t恤',
    price: '¥15.00'
}];
var chotheSmotionDete2 = [{
    id: 1,
    src: './../date/date-images/clothes-images/smotion2-1.jpg',
    describe: '皮尔瑜伽迪卡侬健身手套 力量训练哑铃护掌防滑 DOMYOS QS 轻盈透气 重量训练',
    price: '¥38.00'
}];
var chotheSmotionDete3 = [{
    id: 1,
    src: './../date/date-images/clothes-images/smotion3-1.jpg',
    describe: '同庆和堂专业瑜伽服双线美背瑜伽背心吊带含胸垫122324',
    price: '¥38.00'
}];

//渲染函数
//li
//包图片的a标签类名
//商品描述的a标签类名
//价格的a标签类名
//要传递的数据对象名
function xuanran(li, aImg, aDescribe, price, date) {
    date.map(function(value, index) {
        $(li).eq(index).find(aImg).find('img').attr('src', value.src);
        $(li).eq(index).find(aDescribe).text(value.describe);
        $(li).eq(index).find(price).text(value.price);
        var tempHref = $(li).eq(index).find('a').attr('href');
        $(li).eq(index).find('a').attr('href', tempHref + '?' + value.id)
    });
};

//获取函数
//数据
//目标元素
function get(obj, target) {
    var id = location.search;
    id = id.split('?')[1];
    obj.map(function(value, index) {
        if (id == value.id) {
            $(target).text(value.price);
        }
    });
};